package com.wd.live.ui.activity

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.wd.live.BaseActivity
import com.wd.live.R
import com.wd.live.tool.LocalData
import com.wd.live.tool.getLoginInfo
import com.wd.live.tool.isLogin
import com.wd.live.tool.lunchActivity
import com.wd.live.viewmodel.BaseViewModel

class WelcomeActivity : BaseActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)


        if(isLogin()) lunchActivity<MainActivity>() else lunchActivity<LoginActivity>()
        finish()
    }
}